<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vite App</title>
    <!-- 腾讯地图 JavaScript API -->
    <script charset="utf-8" src="https://map.qq.com/api/gljs?v=1.exp&key=5AEBZ-YFT25-4JDIL-IHCPJ-W4Q3V-RKBZT"></script>
    <script>
      // 检查地图API密钥配置
      window.checkMapApiKey = function() {
        const key = '5AEBZ-YFT25-4JDIL-IHCPJ-W4Q3V-RKBZT';
        if (key === 'YOUR_TENCENT_MAP_KEY') {
          console.warn('请配置腾讯地图API密钥！请在 src/config/map.js 中设置正确的API密钥。');
          return false;
        }
        return true;
      };
      
      // 检查腾讯地图SDK加载状态
      window.addEventListener('load', function() {
        setTimeout(function() {
          if (window.TMap) {
            console.log('腾讯地图SDK加载成功');
            console.log('TMap对象:', window.TMap);
            console.log('TMap.Constants:', window.TMap.Constants);
          } else {
            console.error('腾讯地图SDK加载失败');
          }
        }, 1000);
      });
    </script>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
